package com.chen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 教师表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "teacher")
public class Teacher {

    /**
     * 教师id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 教师姓名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 教师账号
     */
    @TableField(value = "account")
    private String account;

    /**
     * 教师密码
     */
    @TableField(value = "pwd")
    private String pwd;

    /**
     * 是否为管理员身份
     */
    @TableField(value = "admin_power")
    private Integer adminPower;

    /**
     * 是否在职
     */
    @TableField(value = "is_work")
    private Integer isWork;

}